package org.jks.config;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class Config {

	public static void init(HttpServletRequest request,
			HttpServletResponse response, HttpSession session,
			Map<String, Object> map) {
		response.setCharacterEncoding("UTF-8");

		String path = request.getContextPath();
		String basePath = request.getScheme() + "://" + request.getServerName()
				+ ":" + request.getServerPort() + path + "/";
		map.put("basepath", basePath);
	}
}
